package com.wenwan.manage.service;

import java.util.Map;

public interface GiveGetService {

	public Map<String, Object> create(String title, String content, Boolean type, String userId, Double price);

	public Map<String, Object> deleteById(String id);

	// public DataToObject<List<GiveGet>> selectAll(Integer currentPage, Integer
	// pageSize, String userId, Boolean examine);

	public Map<String, Object> selectOneById(String id, String userId);

	public Map<String, Object> selectOneByIdReading(String id, String userId);

	public Map<String, Object> update(String id, String title, String content, Boolean type, String userId,
			Double price, Integer countReading, Integer countShare, Integer countWell, Boolean isUndercarriage);

	public Map<String, Object> selectAll(Integer currentPage, Integer pageSize, String userId, Boolean isForExamine,
			Boolean isForManager, Boolean isForUser, Boolean isExamine, Boolean isAdopt);

	public Map<String, Object> selectRecommend(Integer currentPage, Integer pageSize);

}
